
package com.epam.android.training.days45;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ListViewDemo extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.list_view);
    ListView lv = (ListView) findViewById(R.id.list_view_demo);
    lv.setTextFilterEnabled(true);

    lv.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, getResources().getStringArray(
        R.array.flowers)));

  }
}
